import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
  {
    name: 'home',
    path: '/',
    component: () => {
      return import('../views/home/Home.vue')
    }
  },
  {
    name: 'login',
    path: '/login',
    component: () => {
      return import('../views/login/Login.vue')
    }
  },
  {
    name: 'mine',
    path: '/mine',
    component: () => {
      return import('../views/mine/Mine.vue')
    }
  }
]

const router = new VueRouter({
  routes
})

export default router
